Retrieves the lists of instructors, learners, and learner groups from a given SharePoint SPWeb. Returns a Boolean value indicating whether information about any instructors or learners could not be retrieved.
Parent Type: SlkStore
Namespace: Microsoft.SharePointLearningKit
Assembly: Microsoft.SharePointLearningKit.dll
| C# |
|
public SlkMemberships GetMemberships ( ) |
spWeb
The SPWeb to retrieve information from.
additionalInstructors
A list of instructors to add to those in the returned SlkMemberships.Instructors list. The resulting combined list is sorted and duplicates are removed. SlkUser.SPUser is ignored and may be null for items in additionalInstructors. If additionalInstructors is null it is ignored.
additionalLearners
A list of learners to add to those in the returned SlkMemberships.Learners list. The resulting combined list is sorted and duplicates are removed. SlkUser.SPUser is ignored and may be null for items in additionalLearners. If additionalLearners is null it is ignored.
| Exception type | Condition |
| InvalidOperationException | spWeb is not in the SPSite that this SlkStore is associated with. |
Security: Fails if the current user doesn't have SLK instructor and SharePoint "Reader" permissions on spWeb.